package gatoropoly.game;

import gatoropoly.game.action.GatoropolyAction;

public class DetailAction extends GatoropolyAction<DetailAction> {

	private String caption;
	
	private boolean enabled;
	
	private String command;

	public DetailAction(Gatoropoly client) {
		super(client);
	}

	public String getCommand() {
		return command;
	}

	@Override
	public boolean canPerform() {
		return enabled && super.canPerform();
	}
	public void perform() {
		client.command(command);
	}

	protected void setCommand(String command) {
		this.command = command;
	}
	
	@Override
	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

}
